package wbd; 
{
import flex.messaging.services.MessageServiceAdapter ;
import flex.messaging.services.MessageService;
import flex.messaging.messages.Message;
import flex.messaging.Destination;
public class SimpleCustomAdapter extends MessageServiceAdapter {
	public Object invoke(Message message) {
		MessageService msgService = (MessageService)service;
		msgService.pushMessageToClients(message, true);
		message.headers["adapter"] = "this is SimpleCustomAdapter";
		msgService.sendPushMessageFromPeer(message, true);
		trace("this is SimpleCustomAdapter!!");
		return null;
	}
}
}

